package de.distMLP.evaluation;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import de.mlp_distributed.mlp.math.mahout.Vector;

public final class Helper {
	private Helper() {
		super();
	}

	static List<ClassificationResult> createList(final Vector outputVector) {
		final List<ClassificationResult> results = new ArrayList<ClassificationResult>();
		for (int i = 0; i < outputVector.size(); i++) {
			final ClassificationResult tmp = new ClassificationResult(i, outputVector.get(i));
			results.add(tmp);
		}
		Collections.sort(results);
		return results;
	}
}
